#ifndef INDEX_H
#define INDEX_H

#include <QWidget>
#include "friend.h"
#include "file.h"

namespace Ui {
class Index;
}

class Index : public QWidget
{
    Q_OBJECT

public:
    ~Index();
    //定义函数
    Friend* getFriend();
    File* getFile();
    static Index &getInstance();

private slots:
    void on_friend_PB_clicked();
    void on_file_PB_clicked();

private:
    Ui::Index *ui;

    Index(QWidget *parent = nullptr);//构造函数私有化
    Index(const Index& instance) = delete;//拷贝构造
    Index& operator = (const Index&) = delete;//拷贝运算符
};

#endif // INDEX_H
